<img src='partials/TestDataXY_LineExamples.PNG' style='width:400px;float:right'>
<div>
<pre>
<span class='code_snippet' style='font-size: 11px'>

ArrayList&lt;XYDataSeries&gt; xySeriesList = new ArrayList&lt;XYDataSeries&gt;();

ArrayList&lt;DataPoint&gt; values1 = new ArrayList&lt;DataPoint&gt;();
values1.add(new DataPoint(1, 1));
values1.add(new DataPoint(4, 9));

ArrayList&lt;DataPoint&gt; values2 = new ArrayList&lt;DataPoint&gt;();
values2.add(new DataPoint(1, 1));
values2.add(new DataPoint(5, 4));

ArrayList&lt;DataPoint&gt; values3 = new ArrayList&lt;DataPoint&gt;();
values3.add(new DataPoint(1, 1));
values3.add(new DataPoint(7.5, 6));

ArrayList&lt;DataPoint&gt; values4 = new ArrayList&lt;DataPoint&gt;();
values4.add(new DataPoint(1, 1));
values4.add(new DataPoint(9, 9));

ArrayList&lt;DataPoint&gt; values5 = new ArrayList&lt;DataPoint&gt;();
values5.add(new DataPoint(1, 1));
values5.add(new DataPoint(8, 7));

XYDataSeries&lt;DataPoint&gt; series1 = new XYDataSeries&lt;DataPoint&gt;(new UIPointCircle(
Color.ORANGE, 15), new Line(Color.RED, true, 11), "1");
XYDataSeries&lt;DataPoint&gt; series2 = new XYDataSeries&lt;DataPoint&gt;(
new UIPointSquare(Color.PINK), new Line(Color.PINK, true), "2");
XYDataSeries&lt;DataPoint&gt; series3 = new XYDataSeries&lt;DataPoint&gt;(new UIPointCircle(
Color.BLACK, 23), new Line(Color.BLACK, true, 1), "3");
XYDataSeries&lt;DataPoint&gt; series4 = new XYDataSeries&lt;DataPoint&gt;(
new UIPointCircle(Color.GRAY), new Line(Color.GRAY), "4");
XYDataSeries&lt;DataPoint&gt; series5 = new XYDataSeries&lt;DataPoint&gt;(
new UIPointSquare(Color.CYAN), new Line(Color.CYAN), "5");

series1.dataPoints = values1;
series2.dataPoints = values2;
series3.dataPoints = values3;
series4.dataPoints = values4;
series5.dataPoints = values5;

YAxis yAxis = new YAxis(new LinearNumericalAxisScaling(-5.0, 10.0, new NumericalInterval(4,
1.0), new NumericalInterval(2, 0.5), null), "y");
XAxis xAxis = new XAxis(new LinearNumericalAxisScaling(0.0, 10.0, 1.0, null, null), "x");

xySeriesList.add(series1);
xySeriesList.add(series2);
xySeriesList.add(series3);
xySeriesList.add(series4);
xySeriesList.add(series5);

XYChart chart = new XYChart("", "", "", xySeriesList, yAxis, xAxis, false);

chart.setSize(1000, 500);
chart.rightOffset = 200;

chart.setTitleFont(new Font("Ariel", Font.PLAIN, 24));
chart.setTitle("xy");

</span></pre></div>